package com.neuedu.service;

import com.alipay.api.AlipayApiException;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.neuedu.entity.PmsOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import jakarta.servlet.http.HttpServletRequest;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author 王禹
 * @since 2025-08-13
 */
public interface PmsOrderService extends IService<PmsOrder> {
    boolean updatePay(HttpServletRequest request) throws AlipayApiException;
    boolean updateActiveByNo(String no, byte active);
    List<PmsOrder> getOrder(String registerNo, LocalDate createDate);
    String payment(String no, String total, String type) throws AlipayApiException, JsonProcessingException;
}
